<%-- 
    Document   : cmteditor
    Created on : Nov 20, 2012, 8:07:28 AM
    Author     : Psy Fox
--%>

<%@page import="tracker.TrackerHelper"%>
<%@page import="tracker.Users"%>
<%@page language="java" contentType="text/html" pageEncoding="UTF-8"%>
<%
    TrackerHelper helper = new TrackerHelper();
    int userid = Integer.valueOf(request.getParameter("userid"));
    int torrentid = Integer.valueOf(request.getParameter("torrentid"));
    Users user = helper.getUserById(userid);
    helper.addComment(torrentid, userid, request.getParameter("comment"));

%>
<li class="box">

    <a href="user/singleUser.jsp?userId=<%= userid%>"><h4><%= user.getUserName()%></h4></a>
    <p><%= request.getParameter("comment")%></p>
</li>
